package com.xcc.strategypattern.demo02;

/**
 * @Description: RedHeadDuck
 * @Author: xiechuang
 * @Date: 2022/5/20
 */
public class RedHeadDuck extends Duck implements Flyable, Quackable{

    @Override
    public void display() {
        System.out.println("外观是红头");
    }

    @Override
    public void fly() {
        System.out.println("飞翔");
    }

    @Override
    public void quack() {
        System.out.println("叫声：呱呱叫");
    }

}
